<?php

class ProductReviewList extends CWidget {

    public function run() {
        $baseUrl = Yii::app()->request->baseUrl . '/';
        $models = ProductReviewModel::model()->findAll('active = 1 order by date desc');
        $this->render('productreviewlist', array('baseUrl' => $baseUrl, 'models' => $models));
    }

}
